home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19950329-19950528 / 000078_news@columbia.edu_Sun Apr 9 12:11:15 1995.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA19127
  2.   (5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun.cc.columbia.edu>); Sun, 9 Apr 1995 08:49:17 -0400
  3. Received: by apakabar.cc.columbia.edu id AA02963
  4.   (5.65c+CU/IDA-1.4.4/HLK for kermit.misc@watsun); Sun, 9 Apr 1995 08:49:16 -0400
  5. Path: news.columbia.edu!sol.ctr.columbia.edu!howland.reston.ans.net!math.ohio-state.edu!uwm.edu!msunews!harbinger.cc.monash.edu.au!yoyo.aarnet.edu.au!goliath.camtech.com.au!gateway.dircsa.org.au!gateway.dircsa.org.au!not-for-mail
  6. From: arthur@gateway.dircsa.org.au (Arthur Marsh)
  7. Newsgroups: comp.protocols.kermit.misc
  8. Subject: Re: Input / Output in Scripts?
  9. Date: 9 Apr 1995 21:41:15 +0930
  10. Organization: DIRCSA - Disability Information and Resource Centre
  11. Lines: 38
  12. Distribution: world
  13. Message-Id: <3m8it3$cbe@gateway.dircsa.org.au>
  14. References: <3lhpvk$nb8@ccnet.ccnet.com>
  15. Nntp-Posting-Host: gateway.dircsa.org.au
  16. X-Newsreader: TIN [version 1.1 PL8]
  17. Apparently-To: kermit.misc@watsun.cc.columbia.edu
  18.  
  19. dasilva@ccnet.com wrote:
  20. : I've got the manual in front of me, and I am trying to learn scripting. I have
  21. : the following script to telnet to my provider:
  22.  
  23. : log session
  24. : set input echo on
  25. : set terminal type vt100
  26. : telnet my.isp.com
  27.  
  28. replace this with
  29.  
  30. set port tcp/ip my.isp.com
  31.  
  32. : input 5 login:
  33. : output myname\13
  34. : input 5 Password
  35. : output mypassword\13
  36.  
  37. Add a 
  38.  
  39. connect
  40.  
  41. if desired at this stage.
  42.  
  43. telnet my.isp.com 
  44.  
  45. is equivalent to:
  46.  
  47. set port tcp/ip my.isp.com
  48. connect
  49.  
  50. which puts you directly into interactive mode, and the script that follows
  51. doesn't get executed until the telnet session gets closed. 
  52.  
  53. -- 
  54. Arthur Marsh, telephone +61-8-370-2365, fax +61-8-370-2133, +61-8-223-5082 
  55.               arthur@gateway.dircsa.org.au
  56. .endofsig